<?php
html::printPath(html::createCrudPath('currency', $country, 'name', 'code'));
$msg->printMessages();

$fb = new FormBuilder('currency', $currency);
$fb->text('code')->required()->readOnly(sql::isPersistent($currency));
$fb->text('name')->required();
$fb->text('name_native')->required();
$fb->submitButton();
$fb->write();
